package com.yanqu.road.entity.task;

import com.yanqu.road.entity.DataObject;

import java.util.List;

/**
 * 任务活跃值
 */
public class UserTaskActive extends DataObject {

	private long userId;
	/**
	 * 任务活跃度
	 */
	private int taskActive;

	private List<Integer> taskGetRewardIndexList;

	private long lastUpdateTime;

	private long sevenDayStartTime;

	private int sevenDayActive;

	private  List<Integer> sevenDayGetRewardIndexList;

	public long getUserId() {
		return userId;
	}

	public void setUserId(long userId) {
		if(this.userId != userId) {
			this.userId = userId;
			setUpdateOption();
		}
	}

	public int getTaskActive() {
		return taskActive;
	}

	public void setTaskActive(int taskActive) {
		if(this.taskActive != taskActive) {
			this.taskActive = taskActive;
			setUpdateOption();
		}
	}

	public List<Integer> getTaskGetRewardIndexList() {
		return taskGetRewardIndexList;
	}

	public void setTaskGetRewardIndexList(List<Integer> taskGetRewardIndexList) {
		this.taskGetRewardIndexList = taskGetRewardIndexList;
		setUpdateOption();
	}

	public long getLastUpdateTime() {
		return lastUpdateTime;
	}

	public void setLastUpdateTime(long lastUpdateTime) {
		if(this.lastUpdateTime != lastUpdateTime) {
			this.lastUpdateTime = lastUpdateTime;
			setUpdateOption();
		}
	}

	public long getSevenDayStartTime() {
		return sevenDayStartTime;
	}

	public void setSevenDayStartTime(long sevenDayStartTime) {
		if(this.sevenDayStartTime != sevenDayStartTime) {
			this.sevenDayStartTime = sevenDayStartTime;
			setUpdateOption();
		}
	}

	public int getSevenDayActive() {
		return sevenDayActive;
	}

	public void setSevenDayActive(int sevenDayActive) {
		if(this.sevenDayActive != sevenDayActive) {
			this.sevenDayActive = sevenDayActive;
			setUpdateOption();
		}
	}

	public List<Integer> getSevenDayGetRewardIndexList() {
		return sevenDayGetRewardIndexList;
	}

	public void setSevenDayGetRewardIndexList(List<Integer> sevenDayGetRewardIndexList) {
		this.sevenDayGetRewardIndexList = sevenDayGetRewardIndexList;
	}

	public void addRewadIndex(int value) {
		getTaskGetRewardIndexList().add(value);
		this.setUpdateOption();
	}

	public void addSevenRewardIndex(int value) {
		getSevenDayGetRewardIndexList().add(value);
		this.setUpdateOption();
	}

}
